import Vue from 'vue'
import Router from 'vue-router'
import Delivery from '@/Page/Delivery'
import Goods from '@/Page/components/Goods'
import Ratings from '@/Page/components/Ratings'
import Sellers from '@/Page/components/Sellers'

Vue.use(Router)

export default new Router({
  linkActiveClass: 'active',
  routes: [
    {
      path: '/',
      name: 'Delivery',
      component: Delivery,
      redirect: 'goods',
      children: [
        {
          path: 'goods',
          name: 'goods',
          component: Goods
        }, {
          path: 'ratings',
          name: 'Ratings',
          component: Ratings
        }, {
          path: 'sellers',
          name: 'sellers',
          component: Sellers
        }
      ]
    }
  ]
})
